package com.an;

import java.sql.SQLOutput;

public class Enum_ {
    public static void main(String[] args) {
//        Season season = Season.SPRING;
//        Season summer = Season.SUMMER;
//        Season autunm = Season.AUTUNM;
//        Season wenter = Season.WENTER;
//
//        System.out.println(season.toString());
//        System.out.println(summer.toString());
//        System.out.println(autunm.toString());
//        System.out.println(wenter.toString());
        System.out.println(Season.WENTER.toString());
        System.out.println(Season.AUTUNM.toString());
        System.out.println(Season.SPRING.toString());
        System.out.println(Season.SUMMER.toString());
        System.out.println(Season.SUMMER);
    }
}

enum Season{


   SPRING("春天","温暖"),
    SUMMER("夏天","炎热"),
    AUTUNM("秋天","凉快"),
    WENTER("冬天","寒冷");
    private String name;
    private String  desprision;

//    public final static Season SPRING=new Season("春天","温暖");
//    public final static Season SUMMER=new Season("夏天","炎热");
//    public final static Season AUTUNM=new Season("秋天","凉快");
//    public final static Season WENTER=new Season("冬天","寒冷");


   private  Season(String name, String desprision) {
        this.name = name;
        this.desprision = desprision;
    }

    public String getName() {
        return name;
    }

    public String getDesprision() {
        return desprision;
    }

    @Override
    public String toString() {
        return "Season{" +
                "name='" + name + '\'' +
                ", desprision='" + desprision + '\'' +
                '}';
    }

}